package com.guigu.gulicommon.constant.enumes.res;

import com.guigu.gulicommon.api.BaseResCode;
import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * @author 陈俊杰
 * @version 1.0
 * @since 2024/8/15 15:25
 */
@Getter
@AllArgsConstructor
public enum OtherResCode implements BaseResCode {
    //--------------------------------------------------------------------------------------成功
    GENERATION_ORDER_TOKEN_SUCCESS(200, "生成订单令牌成功"),
    LOCK_STOCK_SUCCESS(200, "锁定库存成功"),
    SUBMIT_ORDER_SUCCESS(200, "提交订单成功"),
    //--------------------------------------------------------------------------------------失败
    PARAMETER_TYPE_ERROR(400, "请填入合法的字段"),
    ORDER_TOKEN_ERROR(400, "订单令牌错误"),
    PRODUCT_NO_HAS_STOCK_ERROR(400, "商品无库存"),
    ;
    private final Integer code;
    private final String msg;
}
